<?php

namespace pam\Factory;

/**
 * Description of PolicyServiceFactory
 *
 * @author Robert Bwana
 */
use pam\Service\PolicyService;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class PolicyServiceFactory implements FactoryInterface{
    public function createService(ServiceLocatorInterface $serviceLocator) {
        return new PolicyService(
                $serviceLocator->get('pam\Mapper\PolicyDataAccess')
                );
    }

}
